//
//  ZCprojectdetailinfoCell.m
//  zctx
//
//  Created by apple on 15/10/8.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCprojectdetailinfoCell.h"

@implementation ZCprojectdetailinfoCell

- (void)awakeFromNib {
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

-(void)setDetailesModel:(ZCProjectdetailsModel *)detailesModel{
    _detailesModel = detailesModel;
    if (_detailesModel.mid) {
        self.mnameLable.text = [NSString stringWithFormat:@"%@",_detailesModel.mid];
    }else{
        self.mnameLable.text =@"";
    }
    if (_detailesModel.location) {
        self.locationLable.text = [NSString stringWithFormat:@"%@",_detailesModel.location];
    }else{
        self.locationLable.text =@"";
    }
    
    if (_detailesModel.brand) {
        self.brandLable.text = [NSString stringWithFormat:@"%@",_detailesModel.brand];
    }else{
        self.brandLable.text =@"";
    }
    
    if (_detailesModel.institution) {
        self.institutionLable.text = [NSString stringWithFormat:@"%@",_detailesModel.institution];
    }else{
        self.institutionLable.text =@"";
    }
    
    if (_detailesModel.packagename) {
        self.pjnameLable.text = [NSString stringWithFormat:@"%@",_detailesModel.packagename];
    }else{
        self.pjnameLable.text =@"";
    }
    
    int time = [[NSString stringWithFormat:@"%@",_detailesModel.btime]intValue];
    
    
    
    if (_detailesModel.btime) {
        self.btimeLable.text = [NSString stringWithFormat:@"%@",stringYearDataWithTimeInterval(time)];
    }else{
        self.btimeLable.text =@"";
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
